package com.ming.easyDevelop.mappers;

import com.ming.easyDevelop.mappers.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Mapper;
/**
 * @Description  Mapper接口
 * @Author ming
 * @Date 2024/07/10
 */
@Mapper
public interface AddressesMapper<T,P> extends BaseMapper {
	/**
	 * 根据AddressID查询
	 */
	T selectByAddressID(@Param("addressID") Integer addressID);
	/**
	 * 根据AddressID更新
	 */
	Long updateByAddressID(@Param("bean") T t, @Param("addressID") Integer addressID);
	/**
	 * 根据AddressID删除
	 */
	Long deleteByAddressID(@Param("addressID") Integer addressID);
	/**
	 * 根据UserIDAndAddressType查询
	 */
	T selectByUserIDAndAddressType(@Param("userID") Integer userID, @Param("addressType") String addressType);
	/**
	 * 根据UserIDAndAddressType更新
	 */
	Long updateByUserIDAndAddressType(@Param("bean") T t, @Param("userID") Integer userID, @Param("addressType") String addressType);
	/**
	 * 根据UserIDAndAddressType删除
	 */
	Long deleteByUserIDAndAddressType(@Param("userID") Integer userID, @Param("addressType") String addressType);
}